function sum(num1, num2) {
  console.log("arguments.length:", arguments.length); // arguments.length: 4
  return num1 + num2;
}

sum(1, 2, 3, 4);
console.log("length:", sum.length); // length: 2
